package code.c07;

/**
 * @author thinkpad - 83start
 * @version v1.0
 * @create 2022/10/13 11:23
 * @package code.c07
 * @description 文件说明
 */

public class Test {
    public static void main(String[] args) {
       String str = null;
       int[] ints ={1,2,3};

       try {
           System.out.println(str.length());
       }catch (NullPointerException e){
           e.printStackTrace();
       }catch (Exception e){
           e.printStackTrace();
       }

        try {
            System.out.println(ints[3]);
        }catch (ArrayIndexOutOfBoundsException e){
            e.printStackTrace();
        } catch (Exception e){
            e.printStackTrace();
        }

        System.out.println("aaa");
    }
}
